package com.bzframework.bookkeeping.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bzframework.core.entity.GenericEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author bingzhong
 * @Date 2025/11/2
 * 房间表
 */
@Getter
@Setter
@TableName("bz_bookkeeping_room")
public class BookkeepingRoomEntity extends GenericEntity<String> {

    @Schema(description = "房间号")
    private String roomCode;

    @Schema(description = "房间名称")
    private String roomName;

    @Schema(description = "创建人ID")
    private String creatorId;

    /**
     * @see com.bzframework.bookkeeping.enums.BookkeepingRoomRoleEnum
     */
    @Schema(description = "房间角色")
    private String role;

    @Schema(description = "最大玩家数")
    private Integer maxPlayers;

    @Schema(description = "当前玩家数")
    private Integer currentPlayers;

    /**
     * @see com.bzframework.bookkeeping.enums.BookkeepingRoomStatusEnum
     */
    @Schema(description = "房间状态：1-进行中，2-已结束")
    private Integer roomStatus;

    @Schema(description = "金额单位")
    private String amountUnit;

}
